import request from '@/utils/request'
const api_name = '/admin/product/category'

export const FindCategoryByParentId= (parentId)=>{
    return request({
        url: `${api_name}/findByParentId/${parentId}`,
        method: 'get',
      })
}

export const ExportCategoryData=()=>{
  return request({
    url: `${api_name}/exportData`,
    method: 'get',
    responseType: 'blob'  // // 这里指定响应类型为blob类型,二进制数据类型，用于表示大量的二进制数据
  })
}

